<?php

namespace app\admin\validate;

use think\Validate;

class Catrgory extends Validate
{
    protected $rule =   [
        'name'  => 'require|max:11',   
        'admin_id' => 'require',	
        'intro' => 'require',		
    ];
    
    protected $message  =   [
        'name.require' => '分类名',
        'name.max' => '分类名不能超过11个字',
		'admin_id.require' => '作者不能为空',
		'intro.require' => '资讯内容不能为空',
    ];
}